package ooday04;

public class Fish extends Animal implements Swim {
    Fish(String name,int age,String gender){
        super(name,age,gender);
    }
    @Override
    public void swim() {
        System.out.println(name+"会自由泳");
    }
    @Override
    public void eat(){
        System.out.println(name+"喜欢吃水草");
    }
}
